/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Transportation Services Provider Codes Member1</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getTransportationServicesProviderCodesMember1()
 * @model extendedMetaData="name='TransportationServicesProviderCodes_._member_._1'"
 * @generated
 */
public enum TransportationServicesProviderCodesMember1 implements Enumerator {
	/**
	 * The '<em><b>340000000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_340000000X_VALUE
	 * @generated
	 * @ordered
	 */
	_340000000X(0, "_340000000X", "340000000X"),

	/**
	 * The '<em><b>347B00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_347B00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_347B00000X(1, "_347B00000X", "347B00000X"),

	/**
	 * The '<em><b>343900000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_343900000X_VALUE
	 * @generated
	 * @ordered
	 */
	_343900000X(2, "_343900000X", "343900000X"),

	/**
	 * The '<em><b>347C00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_347C00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_347C00000X(3, "_347C00000X", "347C00000X"),

	/**
	 * The '<em><b>343800000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_343800000X_VALUE
	 * @generated
	 * @ordered
	 */
	_343800000X(4, "_343800000X", "343800000X"),

	/**
	 * The '<em><b>344600000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_344600000X_VALUE
	 * @generated
	 * @ordered
	 */
	_344600000X(5, "_344600000X", "344600000X"),

	/**
	 * The '<em><b>347D00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_347D00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_347D00000X(6, "_347D00000X", "347D00000X"),

	/**
	 * The '<em><b>347E00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_347E00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_347E00000X(7, "_347E00000X", "347E00000X");

	/**
	 * The '<em><b>340000000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>340000000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_340000000X
	 * @model literal="340000000X"
	 * @generated
	 * @ordered
	 */
	public static final int _340000000X_VALUE = 0;

	/**
	 * The '<em><b>347B00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>347B00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_347B00000X
	 * @model literal="347B00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _347B00000X_VALUE = 1;

	/**
	 * The '<em><b>343900000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>343900000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_343900000X
	 * @model literal="343900000X"
	 * @generated
	 * @ordered
	 */
	public static final int _343900000X_VALUE = 2;

	/**
	 * The '<em><b>347C00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>347C00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_347C00000X
	 * @model literal="347C00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _347C00000X_VALUE = 3;

	/**
	 * The '<em><b>343800000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>343800000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_343800000X
	 * @model literal="343800000X"
	 * @generated
	 * @ordered
	 */
	public static final int _343800000X_VALUE = 4;

	/**
	 * The '<em><b>344600000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>344600000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_344600000X
	 * @model literal="344600000X"
	 * @generated
	 * @ordered
	 */
	public static final int _344600000X_VALUE = 5;

	/**
	 * The '<em><b>347D00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>347D00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_347D00000X
	 * @model literal="347D00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _347D00000X_VALUE = 6;

	/**
	 * The '<em><b>347E00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>347E00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_347E00000X
	 * @model literal="347E00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _347E00000X_VALUE = 7;

	/**
	 * An array of all the '<em><b>Transportation Services Provider Codes Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final TransportationServicesProviderCodesMember1[] VALUES_ARRAY =
		new TransportationServicesProviderCodesMember1[] {
			_340000000X,
			_347B00000X,
			_343900000X,
			_347C00000X,
			_343800000X,
			_344600000X,
			_347D00000X,
			_347E00000X,
		};

	/**
	 * A public read-only list of all the '<em><b>Transportation Services Provider Codes Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<TransportationServicesProviderCodesMember1> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Transportation Services Provider Codes Member1</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TransportationServicesProviderCodesMember1 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			TransportationServicesProviderCodesMember1 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Transportation Services Provider Codes Member1</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TransportationServicesProviderCodesMember1 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			TransportationServicesProviderCodesMember1 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Transportation Services Provider Codes Member1</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static TransportationServicesProviderCodesMember1 get(int value) {
		switch (value) {
			case _340000000X_VALUE: return _340000000X;
			case _347B00000X_VALUE: return _347B00000X;
			case _343900000X_VALUE: return _343900000X;
			case _347C00000X_VALUE: return _347C00000X;
			case _343800000X_VALUE: return _343800000X;
			case _344600000X_VALUE: return _344600000X;
			case _347D00000X_VALUE: return _347D00000X;
			case _347E00000X_VALUE: return _347E00000X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private TransportationServicesProviderCodesMember1(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //TransportationServicesProviderCodesMember1
